/*
 *
 *  Copyright (C) 2012-2024
 *  All rights reserved, Designed By 杭州连线客信息技术有限公司
 *  注意：
 *  本软件为杭州连线客信息技术有限公司开发研制，未经购买不得使用
 *  购买后可获得全部源代码（禁止转卖、分享、上传到码云、github等开源平台）
 *  一经发现盗用、分享等行为，将追究法律责任，后果自负
 *
 */

package com.lxk.ums.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.lxk.service.ums.response.UmsUserDto;
import com.lxk.ums.domain.UmsUser;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import io.github.linpeilie.annotations.AutoMapping;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;



/**
 * 用户视图对象 ums_user
 *
 * @author LXK-RY5
 * @date 2024-06-27
 */
@Data
@ExcelIgnoreUnannotated
@AutoMappers(value = {
    @AutoMapper(target = UmsUser.class),
    @AutoMapper(target = UmsUserDto.class)
})

public class UmsUserVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 积分
     */
    private BigDecimal integral;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    @AutoMapping(target = "userId", targetClass = UmsUserDto.class, reverseConvertGenerate = false)
    private Long id;

    /**
     * 用户账号
     */
    @ExcelProperty(value = "用户账号")
    private String userName;

    /**
     * 用户昵称
     */
    @ExcelProperty(value = "用户昵称")
    private String nickName;

    /**
     * 用户类型
     */
    @ExcelProperty(value = "用户类型")
    private String userType;

    /**
     * 一句话介绍
     */
    @ExcelProperty(value = "一句话介绍")
    private String introduce;

    /**
     * 用户邮箱
     */
    @ExcelProperty(value = "用户邮箱")
    private String email;

    /**
     * 手机号码
     */
    @ExcelProperty(value = "手机号码")
    private String phonenumber;

    /**
     * 用户性别（0男 1女 2未知）
     */
    @ExcelProperty(value = "用户性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /**
     * 头像地址
     */
    @ExcelProperty(value = "头像地址")
    private String avatar;

    /**
     * 密码
     */
    @ExcelProperty(value = "密码")
    private String password;

    /**
     * 帐号状态（0正常 1停用）
     */
    @ExcelProperty(value = "帐号状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 最后登录IP
     */
    @ExcelProperty(value = "最后登录IP")
    private String loginIp;

    /**
     * 最后登录时间
     */
    @ExcelProperty(value = "最后登录时间")
    private Date loginDate;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 微APPOPENID
     */
    @ExcelProperty(value = "微APPOPENID")
    private String wxAppOpenId;

    /**
     * 微信unionid
     */
    @ExcelProperty(value = "微信unionid")
    private String wxUnionidId;

    /**
     * 微信小程序openId
     */
    @ExcelProperty(value = "微信小程序openId")
    private String wxMiniAppOpenId;

    /**
     * 微信公众号openId
     */
    @ExcelProperty(value = "微信公众号openId")
    private String wxMpAppOpenId;

    /**
     * 微信网页openId
     */
    @ExcelProperty(value = "微信网页openId")
    private String wxPcOpenId;

    /**
     * 用户编号
     */
    @ExcelProperty(value = "用户编号")
    private String userSn;

    /**
     * 邀请人code
     */
    @ExcelProperty(value = "邀请人code")
    private String inviterCode;

    /**
     * 注册设备类型，IOS，Android
     */
    @ExcelProperty(value = "注册设备类型，IOS，Android")
    private String registerDeviceType;

    private String tenantId;


}
